<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <home></home>
  </div>
  <template id="tpl">
    <div>
      <h1>我是home页</h1>  
    </div>
  </template>
  <script src="./vue.js"></script>
  <script>
   
    const Home = {
      template:"#tpl"
    }
    
    Vue.component('Home',Home)
    const vm = new Vue({
      el:"#app"
    })
  </script>
</body>
</html>
